import React, { useEffect } from 'react'
import { Outlet, Link } from 'react-router-dom'
export default function Home() {
  useEffect(() => {
    console.log('home组件挂载了')
    return () => {
      console.log('home组件卸载了')
    }
  }, [])
  return (
    <div>
      <h1>Home</h1>
      <Link to="/home/test">test</Link>
      <hr />
      <Outlet></Outlet>
    </div>
  )
}
